<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');


// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'Lake B2B',
// 	'sourceLanguage'=>'en',
	'language'=>'en',

	// preloading 'log' component
	'preload'=>array('log'),

	// autoloading model and component classes
	'import'=>array(
		'application.models.*',
		'application.components.*',
	),
	'modules'=>array(
			// uncomment the following to enable the Gii tool
			'gii'=>array(
					'class'=>'system.gii.GiiModule',
					'password'=>'12345678',

					// If removed, Gii defaults to localhost only. Edit carefully to taste.
					'ipFilters'=>array('127.0.0.1','::1'),
			),'admin'
	
	),

	'defaultController'=>'site',
	
	// application components
	'components'=>array(
		'user'=>array(
			'allowAutoLogin'=>true,
		),
			
		'request'=>array(
				'enableCookieValidation'=>true,
				'baseUrl' => 'http://www.abc.com',
				//'baseUrl' => 'http://www.lakeb2b.com',
		),
	
		 'db'=>array(
				'connectionString' => 'mysql:host=localhost;dbname=lakeb2b',
				'emulatePrepare' => true,
				'username' => 'root',
				'password' => '',
				'charset' => 'utf8',
				'tablePrefix' => '',
		),
		
		/* 'db'=>array(
				'connectionString' => 'mysql:host=mysql51-100.wc1;dbname=818663_lakeb2b',
				'emulatePrepare' => true,
				'username' => '818663_lb2b',
				'password' => 'L@keb2b2012',
				'charset' => 'utf8',
				'tablePrefix' => '',
		), */
		
		'errorHandler'=>array(
			// use 'site/error' action to display errors
			'errorAction'=>'site/error',
		),
		
		'urlManager'=>require(dirname(__FILE__).'/url_manager.php'),
		
		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
					'levels'=>'trace',
					'categories'=>'system.db.*',
				),
				// uncomment the following to show log messages on web pages
				/*
				array(
					'class'=>'CWebLogRoute',
				),*/
				
			),
		),
	),

	'params'=>require(dirname(__FILE__).'/params.php'),
);
